package Renderer.HTMLDrawer;
import Tree.Node;
import Renderer.HTMLRenderer;

/**
 * This class processes all HRule tag Nodes.
 * @author Nathan Scully
 * @version FINAL
 */
public class HRule extends Drawer
{
    /**
     * The Constuctor for this class, which calls the Drawer superclass and
     * passes the node and renderer to it.
     * @param node The Node to be passed to Drawer.
     * @param renderer The Renderer to be passed to Drawer.
     */
    public HRule(Node node, HTMLRenderer renderer)
    {
        super(node, renderer);
    }

    /**
     * The overwritten draw method. It creates a new line, draws a HRule and
     * creates another new line. These are all done via calls to renderer.
     */
    public void draw()
    {
        newLine();
        renderer.drawLine();
        newLine();
    }
}
